package com.xxbb.chapter_6.dome5;

import java.util.Timer;

public class Program {
    public static void main(String[] args) {
        /***
         * 输出当前时间
         */
        MyThimerTask myThimerTask = new MyThimerTask();
        Timer timer = new Timer();
        timer.schedule(myThimerTask,0,1000);//执行定时器，1000毫秒一次

    }
}
